/*头像*/
let headerPictureContainer=document.getElementsByClassName("headerPictureContainer")[0];
let headerPicture=document.getElementsByClassName("headerPicture")[0];
let message=document.getElementsByClassName("message")[0];
headerPicture.style.backgroundImage='url(/final_kele_war_exploded'+sessionStorage.getItem("src")+')';
headerPicture.onmouseover=function(){
    headerPicture.style.top="30px";
    headerPicture.style.width="48px";
    headerPicture.style.height="48px";
    message.style.display="block";
}
headerPicture.onmouseout=function(){
    headerPicture.style.top="0";
    headerPicture.style.width="30px";
    headerPicture.style.height="30px";
    message.style.display="none";
}
headerPictureContainer.onmouseover=function(){
    headerPicture.style.top="30px";
    headerPicture.style.width="48px";
    headerPicture.style.height="48px";
    message.style.display="block";
}
headerPictureContainer.onmouseout=function(){
    headerPicture.style.top="12px";
    headerPicture.style.width="25px";
    headerPicture.style.height="25px";
    message.style.display="none";
}
/*二维码*/
let logo=document.getElementsByClassName("logo")[0];
let KeLeWorld=document.getElementsByClassName("KeLeWorld")[0];
logo.onmouseover=function(){
    KeLeWorld.style.display="block";
}
logo.onmouseout=function(){
    KeLeWorld.style.display="none";
}
KeLeWorld.onmouseover=function(){
    KeLeWorld.style.display="block";
}
KeLeWorld.onmouseout=function(){
    KeLeWorld.style.display="none";
}
/*导航条固定到顶部*/
// let navHeader=document.getElementsByClassName("navHeader")[0];
// document.addEventListener('scroll',function(){
//     let topJuLi = document.documentElement.scrollTop||document.body.scrollTop;
//         navHeader.style.top = topJuLi+"px";
// },true);

let navF11=document.getElementsByClassName("navF11")[0];
navF11.style.display="none";

let navLi=document.getElementsByClassName("navLi");
if(sessionStorage.getItem("vip")!=2){
    navLi[2].style.display="none";
}

let vipTF=document.getElementsByClassName("vipTF")[0];
if(sessionStorage.getItem("vip")==1){
    vipTF.style.backgroundColor="#42bbfd";
}
if(sessionStorage.getItem("vip")==2){
    vipTF.style.backgroundColor="#42bbfd";
}
// /*搜索*/
// let searchInput=document.getElementsByClassName("searchInput");
// let glass=document.getElementsByClassName("glass")[0];
// let searchContainerInput=document.getElementsByClassName("searchContainerInput")[0];
// searchInput[1].onclick=function(){
//     localStorage.setItem('search',searchContainerInput.value);
// }


